﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MainTemplate.Master" AutoEventWireup="true" CodeBehind="EditAccountPage.aspx.cs" Inherits="AlexandriaPressWebsite.MasterPages.UserPages.EditAccountPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainDoc" runat="server">
    <asp:Label ID="updateStatus" runat="server" CssClass="label" 
        ForeColor="Red"></asp:Label>
    <br />
    <br />
<br />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="formDoc" runat="server">
<h1>Edit My Account</h1>
<br />

  <table border="0" id="registrationTable">                           
                             <tr>
                                <td align="right">
                                    <asp:Label ID="FirstNameLabel1" runat="server" AssociatedControlID="FirstName" CssClass="simplelabel" 
                                        >First Name:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="FirstName" runat="server" 
                                      ></asp:TextBox>
                                </td>
                            </tr>
                            
                             <tr>
                                <td align="right">
                                    <asp:Label ID="LastNameLabel1" runat="server" AssociatedControlID="LastName" CssClass="simplelabel" 
                                        >Last Name:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="LastName" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="right">
                                    <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email" CssClass="simplelabel" 
                                        >E-mail:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                    <asp:Label ID="emailExists" runat="server" ForeColor="Red" 
                                        Text="E-mail address already exists." Visible="False" 
                                        CssClass="simplelabel"></asp:Label>
                                </td>
                            </tr>
                            
                           <tr>
                                <td align="right">
                                    <asp:Label ID="DeliveryAddLabel1" runat="server" 
                                        AssociatedControlID="DeliveryAdd" CssClass="simplelabel" >Delivery Address:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="DeliveryAdd" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="center" colspan="2">
                              <asp:Button ID="saveAccountButton" runat="server" 
                                Text="Save" onclick="saveAccountButton_Click" CssClass="genericButton"/>
    
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:RegularExpressionValidator ID="EmailRegEx" runat="server" 
                                        ControlToValidate="Email" ErrorMessage="Incorrect Email format." 
                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                        CssClass="simplelabel"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <asp:Label ID="Label1" runat="server" ForeColor="Red" 
                                        Text="E-mail address already exists." Visible="False"></asp:Label>
                            
                            </table>

<h1>Change Profile Picture</h1>
<br />
    <asp:FileUpload ID="FileUpload1" runat="server" /><br />
    <asp:Button ID="ChangeProfPicButton" runat="server" Text="Save" 
        onclick="ChangeProfPicButton_Click" CssClass="formButton" />
<br />
</asp:Content>
